package control;

import java.util.ArrayList;

import store.TaxCalculator;

import model.*;

public class JointRegister extends Register {

	
	protected static String[] actions = {"Soft Serve", "Scooped", "Classic Sundae", "Signature Sundae", 
		"Soda", "Smoothie", "Coffee Drink", "Shake", "Fruit Drink", "Coffee", "Doughnut", "Sandwich", 
		"Munchkins", "Bagel", "Muffin", "Hash Browns", "Quit"};
	
	
	public JointRegister(ArrayList<Treat> treats, TaxCalculator calc) {
		super(treats, calc);
	}

	@Override
	public Treat getTreatOrder(int treatChoice) {
			switch (treatChoice){
				case 0:
					return new SoftServeIceCream();
				case 1: 
					return new ScoopedIceCream();
				case 2:
					return new ClassicSundae();
				case 3: 
					return new PremimSundae();
				case 4:
					return new Soda();
				case 5:
					return new Smoothie();
				case 6:
					return new CoffeeDrink();
				case 7:
					return new Shake();
				case 8:
					return new FruitDrink();
				case 9:
					return new Coffee();
				case 10:
					return new Doughnut();
				case 11:
					return new Sandwich(); 
				case 12: 
					return new Munchkins();
				case 13:
					return new Bagel();
				case 14:
					return new Muffin();
				case 15:
					return new HashBrowns();
			}
			return new ClassicSundae();
		
	}

	@Override
	String[] getActions() {
		// TODO Auto-generated method stub
		return actions;
	}

}
